package fitnesshub.service;

import fitnesshub.pojo.dto.AddCoachDTO;
import fitnesshub.pojo.dto.CoachPageQueryDTO;
import fitnesshub.pojo.entity.Coach;
import fitnesshub.result.PageResult;

public interface CoachService {
    /**
     * 教练分页
     * @param coachPageQueryDTO
     * @return
     */
    PageResult page(CoachPageQueryDTO coachPageQueryDTO);


    /**
     * 根据id查询教练
     * @param coachId
     * @return
     */
    Coach getById(Integer coachId);

    /**
     * 新增教练
     * @param addCoachDTO
     */
    void addACoach(AddCoachDTO addCoachDTO);

    /**
     * 编辑教练
     * @param coach
     * @return
     */
    void editCoach(Coach coach);

    /**
     * 根据id删除教练
     * @param coachId
     * @return
     */
    void deleteById(Integer coachId);

    /**
     * 检查教练是否存在
     * @param coachId
     * @return
     */
    boolean checkCoachExists(Integer coachId);
}
